Global Index
HTML5 JS API Index > DOM Tutorials & Specs

Text

Extends CharacterData.

The Text(data) constructor must return a new Text node whose data is data and node document is the global object's associated document.

Properties
DOMString
wholeText
The wholeText attribute must return a concatenation of the data of the contiguous Text nodes of the context object, in tree order.
Constructor
Text(optional DOMString data)
Operations
Text
splitText(unsigned long offset)
The splitText(offset) method must split the context object with offset offset.
Referenced by
DocumentcreateTextNode(...)